From: Daniel van Vugt Date: Thu, 12 Jun 2025 05:34:29 +0000 (+0800) Subject: meson: Avoid glibc-specifics when not using glibc X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~124^2^2~38 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=efb1c8cb69c05e9ed86dfc071d22143a69afefbe;p=gnome-shell.git meson: Avoid glibc-specifics when not using glibc This also requires Meson 1.3 to use compiler.has_define. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8457 Part-of: --- diff --git a/meson.build b/meson.build index a3ac8509a..b4cfa76ff 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('gnome-shell', 'c', version: '49.alpha.0', - meson_version: '>= 1.1.0', + meson_version: '>= 1.3.0', license: 'GPL-2.0-or-later', ) @@ -164,7 +164,10 @@ cdata.set('HAVE_MALLINFO', cc.has_function('mallinfo')) cdata.set('HAVE_MALLINFO2', cc.has_function('mallinfo2')) cdata.set('HAVE_SYS_RESOURCE_H', cc.has_header('sys/resource.h')) cdata.set('HAVE_EXE_INTROSPECTION', - cc.has_header('elf.h') and cc.has_header('link.h')) + cc.has_header('elf.h') and + cc.has_header('link.h') and + cc.has_define('__GLIBC__', prefix: '#include ') +) cdata.set('HAVE__NL_TIME_FIRST_WEEKDAY', cc.has_header_symbol('langinfo.h', '_NL_TIME_FIRST_WEEKDAY') )